<%= render :partial => 'admin/shared/configuration_menu' %>

<h1><%= t('inventory_settings') %></h1>

<% form_tag(admin_inventory_settings_path, :method => :put) do -%>

  <p>
    <label>
	  <input name="preferences[show_zero_stock_products]" type="hidden" value="0" />
      <%= check_box_tag('preferences[show_zero_stock_products]', "1", Spree::Config[:show_zero_stock_products]) %>
      <%= t('show_out_of_stock_products') %>
    </label>
  </p>
  
  <p>
    <label>
	  <input name="preferences[allow_backorders]" type="hidden" value="0" />
      <%= check_box_tag('preferences[allow_backorders]', "1", Spree::Config[:allow_backorders]) %>
      <%= t('allow_backorders') %>
    </label>
  </p>

  <p class="form-buttons">
    <%= button t('update') %>
  </p>

<% end -%>
